From: kfraser@localhost.localdomain Date: Wed, 25 Oct 2006 09:27:03 +0000 (+0100) Subject: [XEND] Open xend-debug.log in append mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~157^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=c0b4bd476a10a3f700df982a9facaa63e21e249c;p=xen.git [XEND] Open xend-debug.log in append mode. Signed-off-by: John Levon --- diff --git a/tools/python/xen/xend/server/SrvDaemon.py b/tools/python/xen/xend/server/SrvDaemon.py index 0455811aac..03386d3127 100644 --- a/tools/python/xen/xend/server/SrvDaemon.py +++ b/tools/python/xen/xend/server/SrvDaemon.py @@ -106,12 +106,12 @@ class Daemon: os.close(2) if XEND_DEBUG: os.open('/dev/null', os.O_RDONLY) - os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT) + os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND) os.dup(1) else: os.open('/dev/null', os.O_RDWR) os.dup(0) - os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT) + os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND) def start(self, trace=0):